.unwrap_or(&legacy_path);
warnings.push(format!(
- "path `{}` was erroneously implicitly accepted for library {},\n\
+ "path `{}` was erroneously implicitly accepted for library `{}`,\n\
please rename the file to `src/lib.rs` or set lib.path in Cargo.toml",
short_path.display(), lib.name()
));
.unwrap_or(&legacy_path);
warnings.push(format!(
- "path `{}` was erroneously implicitly accepted for benchmark {},\n\
+ "path `{}` was erroneously implicitly accepted for benchmark `{}`,\n\
please set bench.path in Cargo.toml",
short_path.display(), bench.name()
));
"#);
assert_that(p.cargo_process("bench"), execs().with_status(0).with_stderr_contains("\
-[WARNING] path `src[/]bench.rs` was erroneously implicitly accepted for benchmark bench,
+[WARNING] path `src[/]bench.rs` was erroneously implicitly accepted for benchmark `bench`,
please set bench.path in Cargo.toml"));
}
pub fn foo() {}
"#);
assert_that(p.cargo_process("build"), execs().with_status(0).with_stderr_contains("\
-[WARNING] path `src[/]foo.rs` was erroneously implicitly accepted for library foo,
+[WARNING] path `src[/]foo.rs` was erroneously implicitly accepted for library `foo`,
please rename the file to `src/lib.rs` or set lib.path in Cargo.toml"));
assert_that(&p.root().join("target/debug/libfoo.rlib"), existing_file());